package cn.lili.modules.promotion.entity.dos;

import cn.lili.mybatis.model.BaseStandardEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
* 盲盒商品，中奖概率关联表
* @TableName li_box_mhgoods_tag
*/
@EqualsAndHashCode(callSuper = true)
@TableName(value ="li_box_mhgoods_tag")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
public class BoxMhgoodsTag extends BaseStandardEntity implements Serializable {


    /**
    * 标签：字典tag
    */
    @ApiModelProperty("标签：字典tag")
    private Integer tag;
    /**
    * 标签概率
    */
    @ApiModelProperty("标签概率")
    private BigDecimal probability;
    /**
    * 字典 tag_type：1非试玩，2试玩
    */
    @ApiModelProperty("字典 tag_type：1非试玩，2试玩")
    private Integer type;
    /**
    * 库存，保证这个品的最大售出量
    */
    @ApiModelProperty("库存，保证这个品的最大售出量")
    private Integer stock;
    /**
    * 盲盒关联id
    */
    @ApiModelProperty("盲盒关联id")
    private String mhgoodsId;

    /**
     * 类型名
     */
    @TableField(exist = false)
    private String typeName;
    /**
     * 标签名
     */
    @TableField(exist = false)
    private String tagName;

}
